package com.caldremch.androidfoundation.activity.login;

import android.util.Log;

import com.caldremch.androidfoundation.base.BasePresenter;
import com.caldremch.androidfoundation.http.ApiService;
import com.caldremch.androidfoundation.http.ServerConstant;
import com.caldremch.androidfoundation.http.XHttpManager;
import com.caldremch.androidfoundation.http.convert.MyGsonConverterFactory;
import com.caldremch.androidfoundation.http.interceptor.HeadersInterceptor;
import com.caldremch.androidfoundation.http.model.MediaTypes;
import com.caldremch.androidfoundation.utils.EncodeUtils;

import java.io.IOException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;

import javax.inject.Inject;

import io.reactivex.Observer;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.Disposable;
import io.reactivex.schedulers.Schedulers;
import okhttp3.OkHttpClient;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;

/***
 * dlaj
 */
public class LoginPresenter extends BasePresenter<LoginContact.View> implements LoginContact.Presenter {


    @Inject
    public LoginPresenter() {
    }

    @Override
    public void login(String username, String pwd) {

        username = "1737685084022";
        pwd = "929518714hzx";

        XHttpManager.login(username, pwd);
    }
}
